FROM alpine:latest
RUN apk add --update git python3 py3-pip
WORKDIR /opt
RUN git clone https://gitee.com/LanceChen/asn1.git && python3 -m pip install  --break-system-packages -e asn1/
RUN git clone https://gitee.com/LanceChen/gmutil.git && python3 -m pip install  --break-system-packages -e gmutil/
RUN python -m pip install  --break-system-packages cryptography flask waitress tzdata
WORKDIR /opt/cucc-server
ADD * /opt/cucc-server/
EXPOSE 5000
ENTRYPOINT ["/usr/bin/waitress-serve", "--host=0.0.0.0", "--port=5000", "server:app"]
